#!/usr/bin/env node
const { Transform } = require('stream'),
  chalk = require('chalk'),
  stdin = process.stdin,
  stdout = process.stdout;

stdin.setEncoding('utf8');

class MyTransform extends Transform {
  constructor(){
    super();
  }
  _transform(chunk,encoding,callback){
    this.push(chalk.blueBright(chunk.toString('utf8')));
    callback();
  }
}


const tf = new MyTransform();


stdin.pipe(tf).pipe(stdout);
